/*
	Powered by. XPGA::Valhalla Engine
	Aisyren, ELIA.
*/

import java.util.List;
import java.util.ArrayList;
import java.util.LinkedList;
import java.util.Iterator;

// import java.util.*;

public class ArrayTest
{
	public static void main(String[] argv)
	{
		List<String> arrList = new ArrayList<String>();
		arrList.add("CAUTION : ARRAY LIST");
		arrList.add("I am a bone of my sword.");
		arrList.add("Rock n Roll yo");
		arrList.add("Iterator? Piece of cake.");

		List<String> lnkList = new LinkedList<String>();
		lnkList.add("CAUTION : LINKED LIST");
		lnkList.add("1st");
		lnkList.add("2nd");
		lnkList.add("Give me SOMETHING interesting.");

		
		Iterator<String> arrItr = arrList.iterator();
		Iterator<String> lnkItr = lnkList.iterator();
		
		while(arrItr.hasNext())
		{
			System.out.println(arrItr.next());
		}

		while(lnkItr.hasNext())
		{
			System.out.println(lnkItr.next());
		}

	}
}
